$(document).ready(function(){
    var $content=$('#content');
    $content.find('div.accordion').accordion({
        collapsible:true,
        autoHeight:false
    });
    $content.find('div.tab').tabs({
        fx:{
            opacity:'toggle',
            duration:'fast'
        }
    });
    
    $content.find('div.slider#slider_callback').wl_Slider({
        onSlide:function(value){
            $('#slider_callback_bar').width(value+'%').text(value);
        }
    });
    $content.find('div.slider#slider_mousewheel').wl_Slider({
        onSlide:function(values){
            var _this=$('#slider_mousewheel'),_handler=_this.find('a');
            _h1=_handler.eq(0).offset(),_h2=_handler.eq(1).offset(),value=_h1.left+(_h2.left-_h1.left)/2-_this.offset().left+5;
            $('#slider_mousewheel_left').width(value);
            $('#slider_mousewheel_right').width(_this.width()-value);
        }
    });
    
});